//
//  ChooseTireView.m
//  大轮胎
//
//  Created by 曹亮 on 2017/3/22.
//  Copyright © 2017年 zyc. All rights reserved.
//

#import "ChooseTireView.h"
#import <SDAutoLayout.h>
#import "ChooseCollectionFlowLayout.h"
@implementation ChooseTireView

-(instancetype)initWithFrame:(CGRect)frame
{
    if (self=[super initWithFrame:frame]) {
        
        [self addSubview:self.table];
        
        [self addSubview:self.collection];
        
        
    }
    return self;
}

-(UITableView*)table
{
    if (!_table) {
        _table=[[UITableView alloc]initWithFrame:CGRectMake(0, 0, 100, [UIScreen mainScreen].bounds.size.height) style:UITableViewStylePlain];
    }
    return _table;
}
-(UICollectionView*)collection
{
    if (!_collection) {
        _collection=[[UICollectionView alloc] initWithFrame:CGRectMake(100, 30, [UIScreen mainScreen].bounds.size.width-100, [UIScreen mainScreen].bounds.size.height) collectionViewLayout:[[ChooseCollectionFlowLayout alloc] init]];

    }
    
    return _collection;
}

@end
